#!/usr/bin/env python
import asyncio
import agentstack
import agentops
from stack import {{ cookiecutter.project_metadata.class_name }}Stack


agentops.init(default_tags=agentstack.get_tags())

instance = {{ cookiecutter.project_metadata.class_name }}Stack()

async def run():
    """
    Run the agent.
    """
    await instance.run(inputs=agentstack.get_inputs())
    agentops.end_session(end_state='Success')

if __name__ == '__main__':
    asyncio.run(run)